package org.apache.jsp.platform.om.type;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public final class view_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

  private static java.util.List _jspx_dependants;

  static {
    _jspx_dependants = new java.util.ArrayList(5);
    _jspx_dependants.add("/taglib.jsp");
    _jspx_dependants.add("/WEB-INF/tld/fmt.tld");
    _jspx_dependants.add("/WEB-INF/tld/fn.tld");
    _jspx_dependants.add("/WEB-INF/tld/c.tld");
    _jspx_dependants.add("/WEB-INF/tld/xw.tld");
  }

  private javax.el.ExpressionFactory _el_expressionfactory;
  private org.apache.AnnotationProcessor _jsp_annotationprocessor;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
    _jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
  }

  public void _jspDestroy() {
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      response.setContentType("text/html;charset=UTF-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write('\r');
      out.write('\n');
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");

	response.setHeader("progma", "no-cache");
	response.setHeader("Cache-Control", "no-cache");
	response.setDateHeader("Expires", 0);

      out.write("\r\n");
      out.write("<!DOCTYPE html>\r\n");
      out.write("<html lang=\"zh-cn\">\r\n");
      out.write("<head>\r\n");
      out.write("  ");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "/platform/include/page_list_head.jsp" + (("/platform/include/page_list_head.jsp").indexOf('?')>0? '&': '?') + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("title", request.getCharacterEncoding())+ "=" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("51家庭管家管理平台", request.getCharacterEncoding()), out, false);
      out.write("\r\n");
      out.write("\t<link rel=\"stylesheet\" href=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${platform }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("/js/plugins/ztree/css/zTreeStyle/zTreeStyle2.css\" type=\"text/css\">\r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write(".keyItem{\r\n");
      out.write("\tborder: 1px solid rgb(137, 155, 141);\r\n");
      out.write("\tmargin: 5px;\r\n");
      out.write("\tpadding: 5px;\r\n");
      out.write("\twidth: 50px;\r\n");
      out.write("\ttext-align: center;\r\n");
      out.write("}\r\n");
      out.write(".ztree li span.button.add {\r\n");
      out.write("\tmargin-left: 2px;\r\n");
      out.write("\tmargin-right: -1px;\r\n");
      out.write("\tbackground-position: -144px 0;\r\n");
      out.write("\tvertical-align: top;\r\n");
      out.write("}\r\n");
      out.write("</style>\r\n");
      out.write("</head>\r\n");
      out.write("<body>\r\n");
      out.write("<header>\r\n");
      out.write("  ");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "/platform/include/top.jsp" + (("/platform/include/top.jsp").indexOf('?')>0? '&': '?') + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("parentName", request.getCharacterEncoding())+ "=" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("客户资料管理", request.getCharacterEncoding()) + "&" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("parentUrl", request.getCharacterEncoding())+ "=" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("info", request.getCharacterEncoding()) + "&" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("currName", request.getCharacterEncoding())+ "=" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("属性设置", request.getCharacterEncoding()) + "&" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("hasPrint", request.getCharacterEncoding())+ "=" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("false", request.getCharacterEncoding()) + "&" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("hasExport", request.getCharacterEncoding())+ "=" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("false", request.getCharacterEncoding()), out, false);
      out.write("\r\n");
      out.write("</header>\r\n");
      out.write("  <div class=\"container-fluid clearfix\">\r\n");
      out.write("  \t");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "/platform/include/leftnavi.jsp", out, false);
      out.write("\r\n");
      out.write("     <!-- 主内容 -->\r\n");
      out.write("    <div class=\"main-container\" id=\"mainContainer\">\r\n");
      out.write("    \t<table style=\"width: 1200px; margin: 20px;\">\r\n");
      out.write("    \t\t<tr>\r\n");
      out.write("    \t\t\t<td width=\"400\" align=\"left\" style=\"font-size: 20px;\">\r\n");
      out.write("    \t\t\t\t分类：<a href=\"javascript:addRoot();\" class=\"cm-btn-confirm-bg cm-btn-default\">添加一级分类</a>\r\n");
      out.write("    \t\t\t\t<div style=\"width: 100%; height: 625px; padding: 20px; margin-top: 15px; border: 1px solid rgb(137, 155, 141); overflow: auto;\">\r\n");
      out.write("    \t\t\t\t<ul id=\"treeDemo\" class=\"ztree\"></ul>\r\n");
      out.write("    \t\t\t\t</div>\r\n");
      out.write("    \t\t\t</td>\r\n");
      out.write("    \t\t\t<td valign=\"top\">\r\n");
      out.write("    \t\t\t\t<div style=\"padding: 10px; font-size: 20px;\">\r\n");
      out.write("    \t\t\t\t当前选中分类：<span id=\"currTypeName\" style=\"font-weight: bold;\">(无)</span>\r\n");
      out.write("    \t\t\t\t<hr/>\r\n");
      out.write("    \t\t\t\t属性：\r\n");
      out.write("    \t\t\t\t<div style=\"padding:10px; border: 0px solid rgb(137, 155, 141); overflow: auto; height: 570px;\">\r\n");
      out.write("    \t\t\t\t<div id=\"keysInfoDiv\" style=\"display: none; \">\r\n");
      out.write("    \t\t\t\t<div id=\"keysDiv\">\r\n");
      out.write("    \t\t\t\t\t\r\n");
      out.write("    \t\t\t\t</div>\r\n");
      out.write("    \t\t\t\t<hr/>\r\n");
      out.write("    \t\t\t\t\r\n");
      out.write("    \t\t\t\t<div style=\"font-size: 15px; width: 100%; text-align: left;\">\r\n");
      out.write("    \t\t\t\t\t<form action=\"addkey\" method=\"post\" target=\"hiddenIframe\">\r\n");
      out.write("\t    \t\t\t\t\t<input id=\"currTypeId\" name=\"currTypeId\" type=\"hidden\" value=\"\"/>\r\n");
      out.write("    \t\t\t\t\t\t<table width=\"100%\" class=\"table table-striped table-detailList\">\r\n");
      out.write("\t\t\t                    <tbody>\r\n");
      out.write("\t\t\t                        <tr>\r\n");
      out.write("\t\t\t                        \t<td width=\"18%\">\r\n");
      out.write("\t\t\t                        \t\t<input id=\"keyName\" name=\"keyName\" data-format=\"_required\" data-title=\"属性\" class=\"form-default-input box-sizing mb10\" size=\"12\"/>\r\n");
      out.write("\t\t\t                        \t</td>\r\n");
      out.write("\t\t\t                            <td width=\"15%\">\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t\t<select id=\"textType\" name=\"textType\">\r\n");
      out.write("\t\t\t\t\t    \t\t\t\t\t\t<option value=\"input\">普通文本</option>\r\n");
      out.write("\t\t\t\t\t    \t\t\t\t\t\t<option value=\"textarea\">长文本</option>\r\n");
      out.write("\t\t\t\t\t    \t\t\t\t\t</select>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t<td width=\"15%\"></td>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t<td width=\"15%\"></td>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t\t<td width=\"15%\"></td>\r\n");
      out.write("\t\t\t                            <td><a href=\"javascript:onFormSubmit();\" class=\"cm-btn-confirm-bg cm-btn-default\">添加</a></td>\r\n");
      out.write("\t\t\t                        </tr>\r\n");
      out.write("\t\t\t                    </tbody>\r\n");
      out.write("\t\t\t                </table>\r\n");
      out.write("    \t\t\t\t\t</form>\r\n");
      out.write("    \t\t\t\t\t<br/>\r\n");
      out.write("    \t\t\t\t</div>\r\n");
      out.write("    \t\t\t\t</div>\r\n");
      out.write("    \t\t\t\t</div>\r\n");
      out.write("    \t\t\t\t</div>\r\n");
      out.write("    \t\t\t</td>\r\n");
      out.write("    \t\t</tr>\r\n");
      out.write("    \t</table>\r\n");
      out.write("    </div>\r\n");
      out.write("  </div>\r\n");
      out.write("  <iframe id=\"hiddenIframe\" name=\"hiddenIframe\" style=\"display:none;\"></iframe>\r\n");
      out.write("  ");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "/platform/include/page_list_footer.jsp", out, false);
      out.write("\r\n");
      out.write("  <script type=\"text/javascript\" src=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${platform }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("/js/plugins/ztree/js/jquery.ztree.core-3.5.min.js\"></script>\r\n");
      out.write("  <script type=\"text/javascript\" src=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${platform }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("/js/plugins/ztree/js/jquery.ztree.excheck-3.5.min.js\"></script>\r\n");
      out.write("  <script type=\"text/javascript\" src=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${platform }", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("/js/plugins/ztree/js/jquery.ztree.exedit-3.5.js\"></script>\r\n");
      out.write("<script>\r\n");
      out.write("var setting = {\r\n");
      out.write("\t\tview: {\r\n");
      out.write("\t\t\taddHoverDom: addHoverDom,\r\n");
      out.write("\t\t\tselectedMulti: false\r\n");
      out.write("\t\t},\r\n");
      out.write("\t\tedit: {\r\n");
      out.write("\t\t\tenable: true,\r\n");
      out.write("\t\t\teditNameSelectAll: true,\r\n");
      out.write("\t\t\tshowRemoveBtn: false,\r\n");
      out.write("\t\t\tshowRenameBtn: true\r\n");
      out.write("\t\t},\r\n");
      out.write("\t\tdata: {\r\n");
      out.write("\t\t\tsimpleData: {\r\n");
      out.write("\t\t\t\tenable: true\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\t},\r\n");
      out.write("\t\tcallback: {\r\n");
      out.write("\t\t\tbeforeDrag: beforeDrag,\r\n");
      out.write("\t\t\tbeforeEditName: beforeEditName,\r\n");
      out.write("\t\t\tbeforeRename: beforeRename,\r\n");
      out.write("\t\t\tonRename: onRename,\r\n");
      out.write("\t\t\tonMouseDown: onMouseDown\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\t}\r\n");
      out.write("\t};\r\n");
      out.write("\r\n");
      out.write("var zNodes = ");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${typeData}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write(";\r\n");
      out.write("\r\n");
      out.write("var log, className = \"dark\";\r\n");
      out.write("function beforeDrag(treeId, treeNodes) {\r\n");
      out.write("\treturn false;\r\n");
      out.write("}\r\n");
      out.write("function beforeEditName(treeId, treeNode) {\r\n");
      out.write("\treturn true;\r\n");
      out.write("}\r\n");
      out.write("function beforeRename(treeId, treeNode, newName, isCancel) {\r\n");
      out.write("\tclassName = (className === \"dark\" ? \"\":\"dark\");\r\n");
      out.write("\tif (newName.length == 0) {\r\n");
      out.write("\t\talert(\"节点名称不能为空.\");\r\n");
      out.write("\t\tvar zTree = $.fn.zTree.getZTreeObj(\"treeDemo\");\r\n");
      out.write("\t\tsetTimeout(function(){zTree.editName(treeNode)}, 10);\r\n");
      out.write("\t\treturn false;\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\twindow.Util.loading.show();\r\n");
      out.write("\tvar params = \"1=1\";\r\n");
      out.write("\tif(treeNode.id != null && treeNode.id != ''){\r\n");
      out.write("\t\tparams += \"&id=\" + treeNode.id;\r\n");
      out.write("\t}\r\n");
      out.write("\tif(newName != null && newName != ''){\r\n");
      out.write("\t\tparams += \"&name=\" + newName;\r\n");
      out.write("\t}\r\n");
      out.write("\t$.ajax({\r\n");
      out.write("\t\turl: _platform + \"/om/type/editname\", \r\n");
      out.write("\t\ttype:'post',\r\n");
      out.write("\t\tdata: params,\r\n");
      out.write("\t\tcache:false,\r\n");
      out.write("\t\tdataType:'json',\r\n");
      out.write("\t\tsuccess:function(data) {\r\n");
      out.write("\t\t\twindow.Util.loading.hidden();\r\n");
      out.write("\t\t\tif(data.status == '1'){\r\n");
      out.write("\t\t\t\t\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\t},\r\n");
      out.write("\t\terror : function() {\r\n");
      out.write("\t\t}\r\n");
      out.write("\t});\r\n");
      out.write("\treturn true;\r\n");
      out.write("}\r\n");
      out.write("function onRename(e, treeId, treeNode, isCancel) {\r\n");
      out.write("\tshowLog((isCancel ? \"<span style='color:red'>\":\"\") + \"[ \"+getTime()+\" onRename ]&nbsp;&nbsp;&nbsp;&nbsp; \" + treeNode.name + (isCancel ? \"</span>\":\"\"));\r\n");
      out.write("}\r\n");
      out.write("function showRenameBtn(treeId, treeNode) {\r\n");
      out.write("\treturn !treeNode.isLastNode;\r\n");
      out.write("}\r\n");
      out.write("function showLog(str) {\r\n");
      out.write("\tif (!log) log = $(\"#log\");\r\n");
      out.write("\tlog.append(\"<li class='\"+className+\"'>\"+str+\"</li>\");\r\n");
      out.write("\tif(log.children(\"li\").length > 8) {\r\n");
      out.write("\t\tlog.get(0).removeChild(log.children(\"li\")[0]);\r\n");
      out.write("\t}\r\n");
      out.write("}\r\n");
      out.write("function getTime() {\r\n");
      out.write("\tvar now= new Date(),\r\n");
      out.write("\th=now.getHours(),\r\n");
      out.write("\tm=now.getMinutes(),\r\n");
      out.write("\ts=now.getSeconds(),\r\n");
      out.write("\tms=now.getMilliseconds();\r\n");
      out.write("\treturn (h+\":\"+m+\":\"+s+ \" \" +ms);\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("var newCount = 1;\r\n");
      out.write("function addHoverDom(treeId, treeNode) {\r\n");
      out.write("\tvar sObj = $(\"#\" + treeNode.tId + \"_span\");\r\n");
      out.write("\tif (treeNode.editNameFlag || $(\"#addBtn_\"+treeNode.tId).length>0) return;\r\n");
      out.write("\tvar addStr = \"<span class='button add' id='addBtn_\" + treeNode.tId\r\n");
      out.write("\t\t+ \"' title='add node' onfocus='this.blur();'></span>\";\r\n");
      out.write("\tsObj.after(addStr);\r\n");
      out.write("\tvar btn = $(\"#addBtn_\"+treeNode.tId);\r\n");
      out.write("\tif (btn) btn.bind(\"click\", function(){\r\n");
      out.write("\t\twindow.Util.loading.show();\r\n");
      out.write("\t\tvar params = \"1=1\";\r\n");
      out.write("\t\tif(treeNode.code != null && treeNode.code != ''){\r\n");
      out.write("\t\t\tparams += \"&code=\" + treeNode.code;\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\t$.ajax({\r\n");
      out.write("\t\t\turl: _platform + \"/om/type/addchild\", \r\n");
      out.write("\t\t\ttype:'post',\r\n");
      out.write("\t\t\tdata: params,\r\n");
      out.write("\t\t\tcache:false,\r\n");
      out.write("\t\t\tdataType:'json',\r\n");
      out.write("\t\t\tsuccess:function(data) {\r\n");
      out.write("\t\t\t\twindow.Util.loading.hidden();\r\n");
      out.write("\t\t\t\tif(data.status == '1'){\r\n");
      out.write("\t\t\t\t\tvar zTree = $.fn.zTree.getZTreeObj(\"treeDemo\");\r\n");
      out.write("\t\t\t\t\tzTree.addNodes(treeNode, {id:data.id, pId:treeNode.id, name:data.name, code:data.code});\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\t\t\t},\r\n");
      out.write("\t\t\terror : function() {\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\t});\r\n");
      out.write("\t\treturn false;\r\n");
      out.write("\t});\r\n");
      out.write("};\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("//编辑KEY\r\n");
      out.write("function onMouseDown(event, treeId, treeNode) {\r\n");
      out.write("\tloadKeys(treeNode.id, treeNode.name);\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("$(function(){\r\n");
      out.write("\t$.fn.zTree.init($(\"#treeDemo\"), setting, zNodes);\r\n");
      out.write("});\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("function addRoot(){\r\n");
      out.write("\twindow.Util.loading.show();\r\n");
      out.write("\tvar params = \"1=1\";\r\n");
      out.write("\t$.ajax({\r\n");
      out.write("\t\turl: _platform + \"/om/type/addchild\", \r\n");
      out.write("\t\ttype:'post',\r\n");
      out.write("\t\tdata: params,\r\n");
      out.write("\t\tcache:false,\r\n");
      out.write("\t\tdataType:'json',\r\n");
      out.write("\t\tsuccess:function(data) {\r\n");
      out.write("\t\t\twindow.Util.loading.hidden();\r\n");
      out.write("\t\t\tif(data.status == '1'){\r\n");
      out.write("\t\t\t\twindow.location.reload();\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\t},\r\n");
      out.write("\t\terror : function() {\r\n");
      out.write("\t\t}\r\n");
      out.write("\t});\r\n");
      out.write("}\r\n");
      out.write("function loadKeys(id,name){\r\n");
      out.write("\t$('#currTypeName').html(name);\r\n");
      out.write("\t$('#currTypeId').val(id);\r\n");
      out.write("\t$('#keysInfoDiv').show();\r\n");
      out.write("\twindow.Util.loading.show();\r\n");
      out.write("\tvar params = \"1=1\";\r\n");
      out.write("\tif(id != null && id != ''){\r\n");
      out.write("\t\tparams += \"&id=\" + id;\r\n");
      out.write("\t}\r\n");
      out.write("\t$.ajax({\r\n");
      out.write("\t\turl: _platform + \"/om/type/getkeys\", \r\n");
      out.write("\t\ttype:'post',\r\n");
      out.write("\t\tdata: params,\r\n");
      out.write("\t\tcache:false,\r\n");
      out.write("\t\tdataType:'json',\r\n");
      out.write("\t\tsuccess:function(data) {\r\n");
      out.write("\t\t\twindow.Util.loading.hidden();\r\n");
      out.write("\t\t\tif(data == null || data == ''){\r\n");
      out.write("\t\t\t\t$('#keysDiv').html('');\r\n");
      out.write("\t\t\t}else{\r\n");
      out.write("\t\t\t\tvar html = '';\r\n");
      out.write("\t\t\t\thtml += '<table width=\"100%\" class=\"table table-striped table-detailList\">';\r\n");
      out.write("\t\t\t\thtml += '<thead>';\r\n");
      out.write("\t\t\t\thtml += '<tr>';\r\n");
      out.write("\t\t\t\thtml += '<th width=\"18%\">属性名称</th>';\r\n");
      out.write("\t\t\t\thtml += '<th width=\"15%\">规格</th>';\r\n");
      out.write("\t\t\t\thtml += '<th width=\"15%\">输入方式</th>';\r\n");
      out.write("\t\t\t\thtml += '<th width=\"15%\">排序</th>';\r\n");
      out.write("\t\t\t\thtml += '<th width=\"15%\">是否有效</th>';\r\n");
      out.write("\t\t\t\thtml += '<th>操作</th>';\r\n");
      out.write("\t\t\t\thtml += '</tr>';\r\n");
      out.write("\t\t\t\thtml += '</thead>';\r\n");
      out.write("\t\t\t\thtml += '<tbody>';\r\n");
      out.write("\t\t\t\tfor(var i = 0; i < data.length; i++){\r\n");
      out.write("\t\t\t\t\thtml += '<tr>';\r\n");
      out.write("\t\t\t\t\thtml += '<td><input type=\"text\" id=\"keyName_' + data[i].id + '\" name=\"keyName_' + data[i].id + '\" value=\"' + data[i].keyName + '\" size=\"14\"/></td>';\r\n");
      out.write("\t\t\t\t\thtml += '<td>';\r\n");
      out.write("\t\t\t\t\thtml += '<select id=\"textType_' + data[i].id + '\" name=\"textType_' + data[i].id + '\">';\r\n");
      out.write("\t\t\t\t\thtml += '<option value=\"input\" ' + (data[i].textType=='input'?'selected':'') + '>短文本</option>';\r\n");
      out.write("\t\t\t\t\thtml += '<option value=\"textarea\" ' + (data[i].textType=='textarea'?'selected':'') + '>长文本</option>';\r\n");
      out.write("\t\t\t\t\thtml += '</select>';\r\n");
      out.write("\t\t\t\t\thtml += '</td>';\r\n");
      out.write("\t\t\t\t\thtml += '<td></td>';\r\n");
      out.write("\t\t\t\t\thtml += '<td></td>';\r\n");
      out.write("\t\t\t\t\thtml += '<td></td>';\r\n");
      out.write("\t\t\t\t\thtml += '<td align=\"left\">';\r\n");
      out.write("\t\t\t\t\thtml += '<a href=\"javascript:submitData(\\'' + data[i].id + '\\');\" class=\"cm-btn-confirm-bg cm-btn-default\">保存</a>';\r\n");
      out.write("\t\t\t\t\thtml += '<span id=\"msg_' + data[i].id + '\" style=\"color:red;\"></span>';\r\n");
      out.write("\t\t\t\t\thtml += '</td>';\r\n");
      out.write("\t\t\t\t\thtml += '</tr>';\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\t\t\t\thtml += '</tbody>';\r\n");
      out.write("\t\t\t\thtml += '</table>';\r\n");
      out.write("\t\t\t\t$('#keysDiv').html(html);\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\t},\r\n");
      out.write("\t\terror : function() {\r\n");
      out.write("\t\t}\r\n");
      out.write("\t});\r\n");
      out.write("}\r\n");
      out.write("function reloadKeys(){\r\n");
      out.write("\tvar id = $('#currTypeId').val();\r\n");
      out.write("\tvar name = $('#currTypeName').html();\r\n");
      out.write("\tloadKeys(id, name);\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function onFormSubmit(){\r\n");
      out.write("\tvar keyName = $('#keyName').val();\r\n");
      out.write("\tif(keyName == ''){\r\n");
      out.write("\t\t$.messager.show('属性不能为空！', {placement: 'center'});\r\n");
      out.write("\t\treturn;\r\n");
      out.write("\t}\r\n");
      out.write("\twindow.Util.loading.show();\r\n");
      out.write("\tdocument.forms[0].submit();\r\n");
      out.write("}\r\n");
      out.write("function submitCallBack(isSuccess, message){\r\n");
      out.write("\twindow.Util.loading.hidden();\r\n");
      out.write("\t$.messager.show(message, {placement: 'center'});\r\n");
      out.write("\tif(isSuccess == '1'){\r\n");
      out.write("\t\treloadKeys();\r\n");
      out.write("\t\t$('#keyName').val('');\r\n");
      out.write("\t}\r\n");
      out.write("}\r\n");
      out.write("function submitData(id){\r\n");
      out.write("\tvar currTypeId = $('#currTypeId').val();\r\n");
      out.write("\tvar textType = $('#textType_'+id).val();\r\n");
      out.write("\tvar keyName = $('#keyName_'+id).val();\r\n");
      out.write("\tif(keyName == ''){\r\n");
      out.write("\t\t$.messager.show('属性名不能为空！', {placement: 'center'});\r\n");
      out.write("\t\treturn;\r\n");
      out.write("\t}\r\n");
      out.write("\t$('#msg_'+id).css(\"color\", \"red\");\r\n");
      out.write("\t$('#msg_'+id).html('正在保存。。。');\r\n");
      out.write("\twindow.Util.ajax.post('keymodify',\r\n");
      out.write("\t\t\t{\r\n");
      out.write("\t\t\t\tid: id,\r\n");
      out.write("\t\t\t\ttypeid: currTypeId, \r\n");
      out.write("\t\t\t\ttexttype: textType,\r\n");
      out.write("\t\t\t\tkeyname: keyName,\r\n");
      out.write("\t\t\t},\r\n");
      out.write("\t\t\tfunction(data){\r\n");
      out.write("\t\t\t\tif(data == \"1\"){\r\n");
      out.write("\t\t\t\t\t$('#msg_'+id).css(\"color\", \"green\");\r\n");
      out.write("\t\t\t\t\t$('#msg_'+id).html('保存成功！');\r\n");
      out.write("\t\t\t\t\tsetTimeout(\"hiddenMsg(\" + id + \")\", 2000);\r\n");
      out.write("\t\t\t\t}else{\r\n");
      out.write("\t\t\t\t\t$('#msg_'+id).css(\"color\", \"red\");\r\n");
      out.write("\t\t\t\t\t$('#msg_'+id).html('保存失败！');\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t);\r\n");
      out.write("}\r\n");
      out.write("function hiddenMsg(id){\r\n");
      out.write("\t$('#msg_'+id).html('');\r\n");
      out.write("}\r\n");
      out.write("</script>\r\n");
      out.write("</body>\r\n");
      out.write("</html>\r\n");
      out.write("\r\n");
      out.write("\r\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try { out.clearBuffer(); } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
